home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / plotting / contour / contour.lha / Contour / contour.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-28  |  1.3 KB  |  70 lines

  1. /* x-y-z coordinates */
  2. typedef struct data_strct {
  3.    double x;
  4.    double y;
  5.    double z;
  6. } data;
  7.  
  8. /* triangles */
  9. typedef struct tria_strct {
  10.    data pt1;
  11.    data pt2;
  12.    data pt3;
  13.    struct tria_strct *next;
  14.    struct tria_strct *prev;
  15. } tria;
  16.  
  17. typedef struct tria_strct *triaptr;
  18. triaptr tria_listhead;
  19. triaptr tria_listtail;
  20.  
  21. /* segments */
  22. typedef struct segm_strct {
  23.    data pt1;
  24.    data pt2;
  25.    struct segm_strct *next;
  26.    struct segm_strct *prev;
  27. } segm;
  28.  
  29. typedef struct segm_strct *segmptr;
  30. segmptr segm_listhead;
  31. segmptr segm_listtail;
  32.  
  33. /* nodes */
  34. typedef struct node_strct {
  35.    data pt;
  36.    struct node_strct *next;
  37.    struct node_strct *prev;
  38. } node;
  39.  
  40. typedef struct node_strct *nodeptr;
  41.  
  42. /* plots */
  43. typedef struct plot_strct {
  44.    double level;
  45.    struct node_strct *nodehead;
  46.    struct node_strct *nodetail;
  47.    struct plot_strct *next;
  48.    struct plot_strct *prev;
  49. } plot;
  50.  
  51. typedef struct plot_strct *plotptr;
  52. plotptr plot_listhead;
  53. plotptr plot_listtail;
  54.  
  55. /* boundaries */
  56. double xmin, ymin, xmax, ymax, zmin, zmax;
  57.  
  58. /* output data of single contour */
  59. int    cont_out;
  60. double cont_level;
  61.  
  62. /* expand the data into a surface mesh, SAMPLE-style output */
  63. int    expand;
  64.  
  65. /* use the old SPLAT contour format */
  66. int    oldformat;
  67.  
  68. /* input image file */
  69. char   *imagefile;
  70.